import request from '@/utils/request'

// 查询站场模板信息列表
export function listYardsub(query) {
  return request({
    url: '/system/yardsub/list',
    method: 'get',
    params: query
  })
}

// 查询站场模板信息详细
export function getYardsub(yardSubId) {
  return request({
    url: '/system/yardsub/' + yardSubId,
    method: 'get'
  })
}

// 新增站场模板信息
export function addYardsub(data) {
  return request({
    url: '/system/yardsub',
    method: 'post',
    data: data
  })
}

// 修改站场模板信息
export function updateYardsub(data) {
  return request({
    url: '/system/yardsub',
    method: 'put',
    data: data
  })
}

// 删除站场模板信息
export function delYardsub(yardSubId) {
  return request({
    url: '/system/yardsub/' + yardSubId,
    method: 'delete'
  })
}
